<?php

class Skjb_Search_Xapian_Weight_Bool extends Skjb_Search_Xapian_Weight
{
    public $_cPtr=null;

    function clone_object() {
        $r=BoolWeight_clone_object($this->_cPtr);
        return is_resource($r) ? new Skjb_Search_Xapian_Weight_Bool($r) : $r;
    }

    function __construct() {
        $this->_cPtr=new_BoolWeight();
    }

    function name() {
        return BoolWeight_name($this->_cPtr);
    }

    function serialise() {
        return BoolWeight_serialise($this->_cPtr);
    }

    function unserialise($s) {
        $r=BoolWeight_unserialise($this->_cPtr,$s);
        return is_resource($r) ? new Skjb_Search_Xapian_Weight_Bool($r) : $r;
    }

    function get_sumpart($wdf,$len) {
        return BoolWeight_get_sumpart($this->_cPtr,$wdf,$len);
    }

    function get_maxpart() {
        return BoolWeight_get_maxpart($this->_cPtr);
    }

    function get_sumextra($len) {
        return BoolWeight_get_sumextra($this->_cPtr,$len);
    }

    function get_maxextra() {
        return BoolWeight_get_maxextra($this->_cPtr);
    }

    function get_sumpart_needs_doclength() {
        return BoolWeight_get_sumpart_needs_doclength($this->_cPtr);
    }
}